home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / VECTOR < prev    next >
Text File  |  1994-04-25  |  626b  |  27 lines

  1. VECTOR:
  2.  
  3.     A vector (a row matrix) can be created with the shorthand
  4.     notation:
  5.  
  6.     d1 : d2
  7.  
  8.     or
  9.  
  10.     d1 : d2 : d3
  11.  
  12.     Where    d1 = vector start value
  13.         d2 = vector ending value
  14.         d3 = vector increment/decrement value
  15.  
  16.     The vector increment value takes precedence when the increment
  17.     does not divide evenly into the difference between d1 and d2.
  18.     If it is important for the end value (d2) to take precedence,
  19.     then use the function linspace.
  20.  
  21.     If d2 > d1, and d3 is not specified, then an empty vector is
  22.     created. 
  23.  
  24.     If d2 > d1, and d3 > 0, then an empty vector is created. 
  25.  
  26.     If d1 > d2, and d3 < 0, then an empty vector is created. 
  27.